package com.onefinger.manager.vos
{
	[Bindable]
	[RemoteClass( alias="com.onefinger.domain.CustomerTable" )]
	public class CustomerTable
	{
		public var id:Number = 0;
		public var name:String;
		public var x:Number;
		public var y:Number;
		public var width:Number;
		public var height:Number;
		public var waiter:Waiter;
		public var device:Device;
		public var status:String;
		
		/**
		 * Clone create a clone of this  using copyFrom behavior
		 */
		public function clone():CustomerTable
		{
			var clone:CustomerTable = new CustomerTable();
			clone.copyFrom( this );
			return clone;
		}
		
		/**
		 * Method to copy an Category into this VO
		 */
		public function copyFrom( customerTable:CustomerTable ):void
		{
			id = customerTable.id;
			name = customerTable.name;
			x = customerTable.x;
			y = customerTable.y;
			width = customerTable.width;
			height = customerTable.height;
			waiter = customerTable.waiter.clone();
			device = customerTable.device.clone();
			status = customerTable.status;
		}
	}
}